<?php

global $footer, $data;

class Citar extends CI_Controller {

    public function __construct() {
        parent::__construct();
        global $footer, $data;
        if ($this->session->userdata('lang') == 'spanish') {
            $this->lang->load('about', 'spanish');
        } else {
            $this->lang->load('about', 'english');
        }
        $this->cargarIdioma();
    }

    //control de home
    public function index() {
        global $data;

        $this->load->view('front_end/cita', $data);
    }

    public function cargarIdioma() {
        global $data;
    }

    public function lenChg() {
        global $data;
        if ($this->session->userdata('lang') == 'spanish') {
            $this->session->set_userdata('lang', 'english');
        } else {
            $this->session->set_userdata('lang', 'spanish');
        }

    }

}
